// UserDefinedDisplayUpdateHandler.h: interface for the UserDefinedDisplayUpdateHandler class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_USERDEFINEDDISPLAYUPDATEHANDLER_H__642D4F48_F83D_400D_B2F6_F13C1BDFD047__INCLUDED_)
#define AFX_USERDEFINEDDISPLAYUPDATEHANDLER_H__642D4F48_F83D_400D_B2F6_F13C1BDFD047__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "BaseRequestHandler.h"

struct UserDefinedDisplayItem;

class UserDefinedDisplayUpdateHandler : public BaseRequestHandler
{
public:
	UserDefinedDisplayUpdateHandler(const Packet& packet, HANDLE hClient);
	virtual ~UserDefinedDisplayUpdateHandler();

	virtual bool Prehandling() {return true;}
	virtual bool IsFurtherHandlingNeeded() {return true;}

protected:
	virtual int Handling();

	int AddUserDefinedDisplay(const UserDefinedDisplayItem& uddi);
	int ModifyUserDefinedDisplay(const UserDefinedDisplayItem& uddi);
	int DeleteUserDefinedDisplay(const UserDefinedDisplayItem& uddi);
	int RenameUserDefinedDisplay(const UserDefinedDisplayItem& uddi);
};

#endif // !defined(AFX_USERDEFINEDDISPLAYUPDATEHANDLER_H__642D4F48_F83D_400D_B2F6_F13C1BDFD047__INCLUDED_)
